package com.yao.dto;

import com.yao.po.Orderpay;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class OrderListDto {
    private String orderNo;
    private int orderStatus;
    private List<Orderpay> orderDetailList;
    private BigDecimal totalAmount;


    public OrderListDto() {
    }

    public OrderListDto(String orderNo, int orderStatus, List<Orderpay> orderDetailList, BigDecimal totalAmount) {
        this.orderNo = orderNo;
        this.orderStatus = orderStatus;
        this.orderDetailList = orderDetailList;
        this.totalAmount = totalAmount;
    }

    /**
     * 获取
     * @return orderNo
     */
    public String getOrderNo() {
        return orderNo;
    }

    /**
     * 设置
     * @param orderNo
     */
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    /**
     * 获取
     * @return orderStatus
     */
    public int getOrderStatus() {
        return orderStatus;
    }

    /**
     * 设置
     * @param orderStatus
     */
    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    /**
     * 获取
     * @return orderDetailList
     */
    public List<Orderpay> getOrderDetailList() {
        return orderDetailList;
    }

    /**
     * 设置
     * @param orderDetailList
     */
    public void setOrderDetailList(List<Orderpay> orderDetailList) {
        this.orderDetailList = orderDetailList;
    }

    /**
     * 获取
     * @return totalAmount
     */
    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    /**
     * 设置
     * @param totalAmount
     */
    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String toString() {
        return "OrderListDto{orderNo = " + orderNo + ", orderStatus = " + orderStatus + ", orderDetailList = " + orderDetailList + ", totalAmount = " + totalAmount + "}";
    }
}
